package jp.co.redfox.archclub.poker;

import java.util.ArrayList;
import java.util.List;


public class Hand {
    private final List<Card> cards = new ArrayList<>();
    public static final int HAND_NUMBER;
    static{
        HAND_NUMBER = 5;
    }
    public void draw(Card card) {
        
    }

    public void add(Card dealCard) throws HandOverFlowException {
        if(cards.size() >= HAND_NUMBER)
            throw new HandOverFlowException();
        cards.add(dealCard);
    }

    public void clear() {
        cards.clear();
        
    }

    public List<Card> getCards() {
        return cards;
    }

    public void discard(Card card) {

        cards.remove(card);
    }
}
